<template>
  <div id="main"
       class="mainUserTip">
    <div class="imgBox">
      <div class="img"></div>
      <span class="tip gray">使用提醒</span>
    </div>
    <button class="greenBG white"
            @click="navigateBack">知道了</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  onLoad () {

  },
  methods: {
    navigateBack () {
      uni.setStorageSync('frist-time', 'no');
      uni.navigateBack({
        delta: 1
      });
    },
  }
}
</script>

<style lang="less">
.mainUserTip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40rpx;
  height: 100vh;
  .imgBox {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    width: 100%;
    .img {
      flex-grow: 1;
      width: 100%;
      background-size: auto 100%;
      background-repeat: no-repeat;
      background-position: center;
      background-image: url(https://public-trip.oss-cn-shenzhen.aliyuncs.com/tip.png);
    }
    .tip {
      font-size: 24rpx;
      height: 30rpx;
    }
  }
  button {
    margin-top: 30rpx;
    flex-shrink: 0;
    border-radius: 30rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100rpx;
    width: 260rpx;
    letter-spacing: 6rpx;
    box-shadow: 0rpx 6rpx 14rpx rgba(68, 192, 122, 0.3);
  }
}
</style>
